Module-level declarations

Types

Link copied to clipboard
entity asset
Link copied to clipboard
entity balance
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
struct xfer_input
Link copied to clipboard

Functions

Link copied to clipboard
function _get_asset_balances(account_id: byte_array): list<(id: byte_array, name: text, amount: integer, chain_id: byte_array)>
Link copied to clipboard
function _transfer(inputs: list<xfer_input>, outputs: list<xfer_output>)
Link copied to clipboard
@extendable function after_transfer(inputs: list<xfer_input>, outputs: list<xfer_output>)
Link copied to clipboard
@extendable function before_transfer(inputs: list<xfer_input>, outputs: list<xfer_output>)
Link copied to clipboard
function consume_input(i: xfer_input, idx: integer, assets: map<asset, integer>)
Link copied to clipboard
function deduct_balance(account: account, asset: asset, d_amount: integer)
Link copied to clipboard
function ensure_balance(account: account, asset: asset): balance
Link copied to clipboard
function process_transfer_output(o: xfer_output, idx: integer, available_assets: map<asset, integer>)
Link copied to clipboard
function register_asset(name: text, issuing_chain_rid: byte_array): asset

Queries

Link copied to clipboard
@mount("ft3.get_all_assets") query get_all_assets(): list<(id: byte_array, name: text, issuing_chain_rid: byte_array)>
Link copied to clipboard
@mount("ft3.get_asset_balance") query get_asset_balance(account_id: byte_array, asset_id: byte_array): (id: byte_array, name: text, amount: integer, chain_id: byte_array)?
Link copied to clipboard
@mount("ft3.get_asset_balances") query get_asset_balances(account_id: byte_array): list<(id: byte_array, name: text, amount: integer, chain_id: byte_array)>
Link copied to clipboard
@mount("ft3.get_asset_by_id") query get_asset_by_id(asset_id: byte_array): (id: byte_array, name: text, issuing_chain_rid: byte_array)
Link copied to clipboard
@mount("ft3.get_asset_by_name") query get_asset_by_name(name: text): list<(id: byte_array, name: text, issuing_chain_rid: byte_array)>
Link copied to clipboard
@mount("ft3.get_blockchain_info") query get_blockchain_info(): (name: text, website: text, description: text, rate_limit_active: boolean, rate_limit_max_points: integer, rate_limit_recovery_time: integer, rate_limit_points_at_account_creation: integer)
Link copied to clipboard
@mount("ft3.get_payment_history") query get_payment_history(account_id: byte_array, after_block: integer): list<(delta: integer, asset: text, asset_id: byte_array, is_input: boolean, timestamp: integer, block_height: integer, entry_index: integer, tx_rid: byte_array, tx_data: byte_array)>